package org.xdoclet.plugin.hibernate;

import java.io.File;

import java.net.URL;

import org.generama.MetadataProvider;

import org.xdoclet.QDoxMetadataProvider;

/**
 * Test case for inherit filters and filter-def of class structure.
 * We should use filter information (doclets) from all parent classes
 * (excluding java.lang.Object) and all implemented interfaces.
 *
 * @author Alan She
 */
public class FilterInheritTestCase extends AbstractHibernateMappingTestCase {
    protected URL getExpected() throws Exception {
        return getResourceRelativeToThisPackage("filterinherit/FilterInheritMapping.hbm.xml");
    }

    protected MetadataProvider createMetadataProvider() throws Exception {
        URL reader = getResourceRelativeToThisPackage("filterinherit");
        return new QDoxMetadataProvider(new File(reader.getPath()));
    }

    protected String getApplicableVersion() {
        return HibernateVersion.HIBERNATE_3_0;
    }
}
